#pragma once
#include "sentencia.h"
#include "Variable.h"
class Lea :
	public Sentencia
{
public:

	Lea(Sentencia *next,vector<Variable*> variable):Sentencia(next)
	{
		this->variable = variable;
	}

	~Lea(void)
	{
	}
	virtual string is(){
		return "LEA";
	}

	void setvariable(vector<Variable*>variable){
		this->variable=variable;
	}

	vector<Variable*> getvariable(){
		return this->variable;
	}

	virtual tipo_ts * validarSemantica(tabla_simbolos *tabla_de_tipo,tabla_simbolos *tabla_de_varaible){
		if(this->getNext()!=0){
		this->getNext()->SetReturn(this->GetReturn());
		this->getNext()->validarSemantica(tabla_de_tipo,tabla_de_varaible);
		}
		return 0;
	}


private:
	vector<Variable*> variable;

};

